package com.tsj.mvp.demo4;

/**
 * 专门复制交互（中介，关联view和model）
 * */
public class LoginPresenter4 extends BasePresenter{

    public LoginModel4 loginModel;


    public LoginPresenter4(){
        loginModel = new LoginModel4();
    }

    public void login(String username,String password){
        loginModel.login(username, password, new LoginModel4.CallBack() {
            @Override
            public void callback(String result) {
                if(getLoginView() != null){
                    getLoginView().onLoginResult(result);
                }
            }
        });
    }

}
